﻿using System;
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
using System.Xml.Serialization;

namespace ZenWplExporter.Wpl
{
	/// <summary>
	/// Defines WPL body
	/// </summary>
	[Serializable]
	public class Body
	{
		/// <summary>
		/// Gets or sets the collection of media elements.
		/// </summary>
		/// <value>The sequence.</value>
		[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly",
			Justification = "Required by serializer.")]
		[XmlArray("seq")]
		[XmlArrayItem(typeof(MediaInfo), ElementName = "media")]
		public Collection<MediaInfo> Sequence { get; set; }
	}
}